package com.xfcy.blog.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author 晓风残月Lx
 * @date 2023/4/9 22:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticlePreviewVO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "封面图片")
    private String avatar;

    @ApiModelProperty(value = "内容MD版")
    private String contentMd;

    @ApiModelProperty(value = "是否置顶")
    private int isStick;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private Date createTime;

    @ApiModelProperty(value = "分类Id")
    private Long categoryId;

    @ApiModelProperty(value = "分类名")
    private String categoryName;

    @ApiModelProperty(value = "标签")
    private List<TagVO> tagVOList;

}
